<?php 


/**
 * 支付
 */


class PayController extends CommonController{
		
		
	public function index(){
		$oid = $_GET['oid'];
		
		$data = M('gorder')->where("oid={$oid}")->find();
		$this->assign('data',$data);
//		$dd=cart::getAllData();
//		p($data);
//		p($_SESSION);
		$this->display();
	}	
		
	public function paySuccess(){
		$oid = $_GET['oid'];
		M('gorder')->where("oid={$oid}")->update(array('status'=>'待发货'));
		$this->success('支付成功，请等待发货',U('Index/index'));
	}
		
}





	